<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/store/layout/main.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core">

	<ui:define name="title">
        Chocolor:My drafts
    </ui:define>

	<ui:define name="content">
		<ui:include src="/global/gadgets/loginRequired.xhtml" />
		<c:if test="#{loginBean.isAuthenticated()}">
			<h:form>
				<p:commandLink value="Go back to ordering" action="toStoreOrder" />
			</h:form>

			<h2>Please choose the saved draft to proceed with your order:</h2>

			<ui:include src="/store/order/gadgets/orderDraftListTable.xhtml" />
			<h:form>
				<p:commandLink value="Go back to ordering" action="toStoreOrder" />
			</h:form>
		</c:if>
	</ui:define>
</ui:composition>
